<div class="main layui-clear">
    <div class="wrap">
        <div class="content">
            <include file="Common:questionbar" />
            <ul class="fly-list">
            <?php foreach ($qlist as $qlv) {?>
                <li class="fly-list-li">
                    <a href="<?php echo U('home/ucenter/index', array('uid'=>$qlv['uid']));?>" class="fly-list-avatar">
                        <img src="__ROOT__/<?php echo $qlv['avatar'];?>" alt="<?php echo $qlv['uname'];?>">
                    </a>
                    <h2 class="fly-tip">
                        <a href="<?php echo U('home/question/qpage', array('qid'=>$qlv['qid']));?>">
                            <?php echo $qlv['title'];?>
                        </a>
                    <?php if($qlv['top'] != '0') {?>
                        <span class="fly-tip-stick">
                            置顶帖
                        </span>
                    <?php } elseif($qlv['excellent'] != '0') {?>
                        <span class="fly-tip-jing">
                            精帖
                        </span>
                    <?php } ?>
                    </h2>
                    <p>
                        <span>
                            <a href="<?php echo U('home/ucenter/index', array('uid'=>$qlv['uid']));?>">
                                {$qlv['uname']}
                            </a>
                        </span>
                        <span>
                            <?php echo timeFormat($qlv['qtime']);?>
                        </span>
                        <span>
                            {$qlv['category']}
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                
                            </i>
                            {$qlv['num_of_ans']}
                            <i class="iconfont" title="人气">
                                
                            </i>
                            {$qlv['views']}
                        </span>
                    </p>
                </li>
            <?php } ?>
            </ul>
            <div style="text-align: center">
                <div class="laypage-main">
                    <a href="{:U('home/question/qlistall',array('p'=>2))}" class="laypage-next">
                        更多求解
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div class="edge">
        <h3 class="page-title">
            最近一月回答榜 - TOP 12
        </h3>
        <div class="user-looklog leifeng-rank">
            <span>
            <?php foreach ($userAnsnum as $value) { ?>
                <a href="{:U('home/ucenter/index',array('uid'=>$value['uid']))}">
                    <img src="__ROOT__/{$value['avatar']}">
                    <cite>
                        {$value['uname']}
                    </cite>
                    <i>
                        {$value['ucn']}次回答
                    </i>
                </a>
            <?php } ?>
            </span>
        </div>
        <include file="Common:postranking" />
        <div class="fly-link">
            <span>
                友情链接：
            </span>
            <?php foreach ($llist as $llv) { ?>
                <a href="{$llv['link']}" target="_blank">
                    {$llv['title']}
                </a>
            <?php  } ?>
        </div>
    </div>
</div>